package com.cjl.main;

import com.cjl.io.Resources;
import com.com.cjl.sqlSession.SqlSessionFactory;
import com.com.cjl.sqlSession.SqlSessionFactoryBuilder;
import org.dom4j.DocumentException;

import java.io.InputStream;

public class GbatisMain {

    public void useGbatis() throws DocumentException {
        //获取字节流
        InputStream inputStream = Resources.getResourcesAsStream("SqlMapConfig.xml");
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);

    }
}
